package cc.eddic.practice.concurrency;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.Map;

/**
 * 日志项
 */
@Getter
@ToString
@AllArgsConstructor
public class QiNiuLogItem {
    private String ip;
    private String hitMiss;
    private String responseTime;
    private LocalDateTime timeZone;
    private String method;
    private String url;
    private String protocol;
    private int statusCode;
    private long trafficSize;
    private String referer;
    private String userAgent;

    public boolean isValidRequest() {
        return !(null == method || null == url   || null == protocol);
    }
}
